package request

type TotalOrderAllRes struct {
	Amount int64 `gorm:"column:amount" json:"amount"`
	Num    int64 `gorm:"column:num" json:"num"`
}

type GetOperationAnalysisDataRes struct {
	DeviceCount    int64 `json:"deviceCount"`
	PlaceCount     int64 `json:"placeCount"`
	OrderCount     int64 `json:"orderCount"`
	UserCount      int64 `json:"userCount"`
	CashAmount     int64 `json:"cashAmount"`
	OrderAmount    int64 `json:"orderAmount"`
	DividendAmount int64 `json:"dividendAmount"`
}

type GetOperationAnalysisDataDayReq struct {
	DeviceCount    int64 `json:"deviceCount"`
	PlaceCount     int64 `json:"placeCount"`
	OrderCount     int64 `json:"orderCount"`
	UserCount      int64 `json:"userCount"`
	AverageAmount  int64 `json:"averageAmount"` // 平均客单价
	OrderAmount    int64 `json:"orderAmount"`
	DividendAmount int64 `json:"dividendAmount"`
}

type GetOperationAnalysisDataDayRes struct {
	InDay string `json:"inDay"`
}

type GetActiveCountPlaceDeviceReq struct {
	DeviceNum int64 `gorm:"column:device_num" json:"deviceNum"`
	PlaceNum  int64 `gorm:"column:place_num" json:"placeNum"`
}
